@model decimal?
@{
    object input = ViewData.TemplateInfo.FormattedModelValue ?? ViewData.TemplateInfo.FormattedModelValue.ToString();
    string value = (input==null) ? "" : input.ToString();
}
<div class="form-group">
    @Html.LabelFor(m => m, new { @class = "col-sm-2 control-label" })
    <div class="col-sm-3 col-lg-2">
        @Html.TextBox("", value, new { @class = "form-control" })</span>
        @Html.ValidationMessageFor(m => m, null)
    </div>
</div>
